package com.lwc.cfdns.pojo.dto.system;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;

/**
 * 角色批量授权、取消授权用户表单
 *
 * @author luwc
 * @title RoleAuthUserDTO
 * @description
 * @time 2023/5/30 13:47:20
 * @version: 1.0
 */
@Data
public class RoleAuthUserDTO {
    @NotNull(message = "角色Id不能为空")
    private Long roleId;
    @NotNull(message = "管理员Ids不能为空")
    @Length(min = 0, message = "管理员至少有一个")
    private List<Long> adminIds = new ArrayList<>();
}
